//stringbad.h -- flawed string class definition
#include <iostream>
#ifndef STRINGBAD_H_
#define STRINGBAD_H_

class StringBad
{
    private:
        char * str;
        int len;
        static int num_strings;
    public:
        StringBad(const char * s);
        StringBad(); // default constructor
        ~StringBad();

        //friend function
        friend std::ostream & operator<<(std::ostream & os, const StringBad & st);

        //copy constructor
        StringBad(const StringBad & st);

        //= operator
        StringBad & operator=(const StringBad & st);
};

#endif
